import { defineStore } from "pinia";

const useAppStore = defineStore("appStore", () => {
	// 定位信息
    const location = ref({})
	// 登陆后绑定手机号提醒 (弱提醒，可手动关闭)
	const bindMobile = ref(false)
	
	function setLocation(data:any) {
		location.value = data
	}
	function setBindMobile(data:boolean) {
		bindMobile.value = data
	}
	
	return {
		location,
		bindMobile,
		setLocation,
		setBindMobile
	}
},{
	persist: true
});

export default useAppStore